﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BusinessLogic;
using System.Collections.Generic;
using ATM_System_Mock1_G2;
using System.Web;
using System.Data;
using Entities;
using System.Linq;
using System.Text;

namespace TestMock1_G2
{
    [TestClass]
    public class UnitTest_Duong
    {
        [TestMethod]
        public void TestViewHistory_OneWeek()
        {
            string cardNo = "1234567891234562";
            CustomerBL cusbl = new CustomerBL();
            DataTable listHistory = cusbl.ViewHistory_OneWeek(cardNo);
            Assert.IsNotNull(listHistory);
        }
        [TestMethod]
        public void TestViewHistory_OneMonth()
        {
            string cardNo = "1234567891234562";
            CustomerBL cusbl = new CustomerBL();
            DataTable listHistory = cusbl.ViewHistory_OneMonth(cardNo);
            Assert.IsNotNull(listHistory);
        }
        [TestMethod]
        public void TestViewHistory_FourMonth()
        {
            string cardNo = "1234567891234562";
            CustomerBL cusbl = new CustomerBL();
            DataTable listHistory = cusbl.ViewHistory_FourMonth(cardNo);
            Assert.IsNotNull(listHistory);
        }
        [TestMethod]
        public void TestViewHistory_SixMonth()
        {
            string cardNo = "1234567891234562";
            CustomerBL cusbl = new CustomerBL();
            DataTable listHistory = cusbl.ViewHistory_SixMonth(cardNo);
            Assert.IsNotNull(listHistory);
        }
        [TestMethod]
        public void TestViewHistory_OneYear()
        {
            string cardNo = "1234567891234562";
            CustomerBL cusbl = new CustomerBL();
            DataTable listHistory = cusbl.ViewHistory_OneYear(cardNo);
            Assert.IsNotNull(listHistory);
        }
        [TestMethod]
        public void TestViewHistory_TwoYear()
        {
            string cardNo = "1234567891234562";
            CustomerBL cusbl = new CustomerBL();
            DataTable listHistory = cusbl.ViewHistory_TwoYear(cardNo);
            Assert.IsNotNull(listHistory);
        }
    }

}
